package entities;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 *
 * @author alex
 */

@Entity
@Table(name="COUPON",schema="Coupon")
public class Coupon
{

	private BigDecimal id;
	private int businessId;
	private String imageUrl;
	private String details;
	
	public Coupon()
	{
	}

	public Coupon(BigDecimal id, int businessId, String imageUrl, String details)
	{
		super();
		this.id = id;
		this.businessId = businessId;
		this.imageUrl = imageUrl;
		this.details = details;
	}

    @Id
    @GeneratedValue
	public BigDecimal getId()
	{
		return id;
	}

	public void setId(BigDecimal id)
	{
		this.id = id;
	}

	public int getBusinessId()
	{
		return businessId;
	}

	public void setBusinessId(int businessId)
	{
		this.businessId = businessId;
	}

	public String getImageUrl()
	{
		return imageUrl;
	}

	public void setImageUrl(String imageUrl)
	{
		this.imageUrl = imageUrl;
	}

	public String getDetails()
	{
		return details;
	}

	public void setDetails(String details)
	{
		this.details = details;
	}
	
	@Override
	public String toString()
	{
		
	return "Coupon [id=" + id + ", businessId=" + businessId
				+ ", imageUrl=" + imageUrl + ", details=" + details + "]";
	}

}
